package com.qf.web.controller;

import com.qf.entity.Result;
import com.qf.service.DeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mealDelete")
public class SetMealDeleteController {

    @Autowired
    private DeleteService deleteService;

    @GetMapping
    public Result mealDelete(Integer id){

       deleteService.Delete1(id);
        deleteService.Delete(id);

        return Result.success(null);
    }
}
